package org.lex.jadfront.util;

import java.io.File;

import org.lex.io.utils.FileUtils;
import org.lex.lang.SystemUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class AppStorage {
	private static Logger log = LoggerFactory.getLogger(AppStorage.class);

	public static File getApplicationTmpDir() {
		File systemTmp = SystemUtils.getTempDir();
		log.debug("System tmpdir=" + systemTmp);

		File appTmp = new File(systemTmp, Constants.APPLICATION_NAME);
		FileUtils.createFolder(appTmp);
		return appTmp;
	}
}
